(function(){
    //定义一个雷
    var Jquery = function(id,name){
        //申明原型
        this.id = id;
        this.name = name;
        this.prototype = {
            toString:function(){
                return this.id + "==>"+this.name;
            },
            getById:function(selector){
                return document.getElementById(selector);
            }
        }
    }

    //alert("window's size"+window.innerHeight)
    //alert("window's size"+window.innerWidth)
    //定义一个对象
    var jquery = new Jquery(1,'xxxxx');
    //alert(jquery.name);

    var root = this;
//
// CommonJS/nodeJS Loader
    if (typeof module !== 'undefined' && module.exports) {
        module.exports = jquery;

// AMD Loader
    } else if (typeof define === 'function' && define.amd) {
        define(function () {
            'use strict';
            return jquery;
        });

// Regular Browser loader
    } else {
        root.jquery = jquery;
    }

})();
